package com.teira.rhrrealstate.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.security.management.RoleName;

@Entity
@Name("rol")
@Scope(ScopeType.SESSION)
@Table(name="rol")
public class Rol {
	  private Integer roleId;
	  private String rolename;
	  
	  @Id 
	  @SequenceGenerator(name="my_seq", sequenceName="ROL_SEQ")
	  @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="my_seq")
	  public Integer getRoleId() { return roleId; }
	  public void setRoleId(Integer roleId) { this.roleId = roleId; }
	  
	  @RoleName
	  public String getRolename() { return rolename; }
	  public void setRolename(String rolename) { this.rolename = rolename; }
}